﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FDSimpleModelGenerator.Common
{
    /// <summary>
    /// 统一异常抛出工厂接口
    /// </summary>
    public interface IExceptionThrowFactory
    {
        /// <summary>
        /// 抛出异常
        /// </summary>
        /// <typeparam name="E"></typeparam>
        /// <param name="msg"></param>
        /// <param name="innException"></param>
        void Throw<E>(string msg, Exception innException = null) where E : Exception; //, new(string);

    }
}
